/**
 * Created by bigben on 2017/5/16.
 */

import App from '../App'

let home = r => require.ensure([], () => r(require('../page/home')), 'home')
let disabled = r => require.ensure([], () => r(require('../page/disabled')), 'disabled')
let tax = r => require.ensure([], () => r(require('../page/tax')), 'tax')
let contact = r => require.ensure([], () => r(require('../page/contact')), 'contact')
let security = r => require.ensure([], () => r(require('../page/security')), 'security')
let freelance = r => require.ensure([], () => r(require('../page/freelance')), 'freelance')

export default [{
	path: '/',
	component: App,
	children: [
		{
			path: '',
			redirect: '/home'
		}, {
			path: '/home',
			component: home
		}, {
			path: '/disabled',
			component: disabled
		},{
			path: '/tax',
			component: tax
		},{
			path: '/contact',
			component: contact
		},{
			path: '/security',
			component: security
		},{
			path: '/freelance',
			component: freelance
		}
	]
}]



